import request from '@/utils/request'

export function getRoleList(data){
   return request({
      url:'/role-list',
      method:'get',
      params:data
   });
}

export function editRole(data){
   return request({
      url:'/edit-role',
      method:'post',
      data:qs.stringify(data)
   });
}

export function getRoleInfo(data){
   return request({
      url:'/role-info',
      method:'get',
      params:data
   });
}

export function delRole(data){
    return request({
      url:'/del-role',
      method:'get',
      params:data
   });
}

export function getAllRoleList(){
    return request({
      url:'/all-role-list',
      method:'get'
   });
}
